// main.js
import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'
import * as api from "./utils/api.js"

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import 'remixicon/fonts/remixicon.css';

Vue.config.productionTip = false
Vue.prototype.$api = api; // 挂载到 Vue 原型上
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.use(uviewPlus)
	app.config.globalProperties.$api = api; // 挂载到 Vue 3 的全局属性上
	return {
		app
	}
}
// #endif